.class public final Llt/noframe/ratemeplease/views/ResponseNegativeView;
.super Llt/noframe/ratemeplease/abs/AbsContentView;
.source "ResponseNegativeView.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/ratemeplease/views/ResponseNegativeView$NegativeReactionListener;
    }
.end annotation


# instance fields
.field private _$_findViewCache:Ljava/util/HashMap;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Llt/noframe/ratemeplease/views/ResponseNegativeView$NegativeReactionListener;)V
    .locals 3

    const-string v0, "activity"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "listener"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 15
    invoke-direct {p0, p1}, Llt/noframe/ratemeplease/abs/AbsContentView;-><init>(Landroid/app/Activity;)V

    .line 23
    sget v0, Llt/noframe/ratemeplease/R$layout;->rateme_dialog_response_negative:I

    invoke-static {p1, v0, p0}, Landroid/widget/LinearLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 25
    sget v0, Llt/noframe/ratemeplease/R$id;->pageTitle:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string v1, "pageTitle"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/abs/AbsContentView;->getStrings()Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;

    move-result-object v1

    invoke-interface {v1, p1}, Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;->getSorry(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 26
    sget v0, Llt/noframe/ratemeplease/R$id;->editText:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    const-string v1, "editText"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/abs/AbsContentView;->getStrings()Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;

    move-result-object v2

    invoke-interface {v2, p1}, Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;->getCouldYouTellUsWhatProblemYouFaced(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 27
    sget v0, Llt/noframe/ratemeplease/R$id;->skipButton:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const-string v2, "skipButton"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/abs/AbsContentView;->getStrings()Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;

    move-result-object v2

    invoke-interface {v2, p1}, Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;->getSkip(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 28
    sget v0, Llt/noframe/ratemeplease/R$id;->followButton:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    const-string v2, "followButton"

    invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0}, Llt/noframe/ratemeplease/abs/AbsContentView;->getStrings()Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;

    move-result-object v2

    invoke-interface {v2, p1}, Llt/noframe/ratemeplease/java_interfaces/RateMePlsTranslationInterface;->getSend(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 30
    sget v0, Llt/noframe/ratemeplease/R$id;->headerLayout:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    sget-object v2, Llt/noframe/ratemeplease/Conf;->Companion:Llt/noframe/ratemeplease/Conf$Companion;

    invoke-virtual {v2}, Llt/noframe/ratemeplease/Conf$Companion;->getIns()Llt/noframe/ratemeplease/Conf;

    move-result-object v2

    invoke-virtual {v2}, Llt/noframe/ratemeplease/Conf;->getAccentColor()I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout;->setBackgroundColor(I)V

    .line 32
    sget v0, Llt/noframe/ratemeplease/R$id;->editText:I

    invoke-virtual {p0, v0}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    sget v1, Llt/noframe/ratemeplease/R$color;->rateme_dialog_text_primary:I

    invoke-static {p1, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I

    move-result p1

    invoke-static {v0, p1}, Llt/noframe/ratemeplease/utils/UtilsKt;->setColors(Landroid/widget/EditText;I)V

    .line 34
    sget p1, Llt/noframe/ratemeplease/R$id;->followButton:I

    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    sget-object v0, Llt/noframe/ratemeplease/Conf;->Companion:Llt/noframe/ratemeplease/Conf$Companion;

    invoke-virtual {v0}, Llt/noframe/ratemeplease/Conf$Companion;->getIns()Llt/noframe/ratemeplease/Conf;

    move-result-object v0

    invoke-virtual {v0}, Llt/noframe/ratemeplease/Conf;->getAccentColor()I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setTextColor(I)V

    .line 36
    sget p1, Llt/noframe/ratemeplease/R$id;->followButton:I

    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    new-instance v0, Llt/noframe/ratemeplease/views/ResponseNegativeView$1;

    invoke-direct {v0, p0, p2}, Llt/noframe/ratemeplease/views/ResponseNegativeView$1;-><init>(Llt/noframe/ratemeplease/views/ResponseNegativeView;Llt/noframe/ratemeplease/views/ResponseNegativeView$NegativeReactionListener;)V

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 41
    sget p1, Llt/noframe/ratemeplease/R$id;->skipButton:I

    invoke-virtual {p0, p1}, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findCachedViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    new-instance v0, Llt/noframe/ratemeplease/views/ResponseNegativeView$2;

    invoke-direct {v0, p2}, Llt/noframe/ratemeplease/views/ResponseNegativeView$2;-><init>(Llt/noframe/ratemeplease/views/ResponseNegativeView$NegativeReactionListener;)V

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public _$_findCachedViewById(I)Landroid/view/View;
    .locals 2

    iget-object v0, p0, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findViewCache:Ljava/util/HashMap;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findViewCache:Ljava/util/HashMap;

    :cond_0
    iget-object v0, p0, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    if-nez v0, :cond_1

    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Llt/noframe/ratemeplease/views/ResponseNegativeView;->_$_findViewCache:Ljava/util/HashMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    return-object v0
.end method
